import request from '@/utils/request'

// 创建cdk登录记录离开记录
export function create(data) {
  return request({
    url: '/cdklog//create',
    method: 'post',
    data: data
  })
}

// 更新cdk登录记录离开记录
export function update(data) {
  return request({
    url: '/cdklog//update',
    method: 'put',
    data: data
  })
}

// 删除cdk登录记录离开记录
export function deletes(id) {
  return request({
    url: '/cdklog//delete?id=' + id,
    method: 'delete'
  })
}

// 获得cdk登录记录离开记录
export function get(id) {
  return request({
    url: '/cdklog//get?id=' + id,
    method: 'get'
  })
}

// 获得cdk登录记录离开记录分页
export function getPage(params) {
  return request({
    url: '/cdklog//page',
    method: 'get',
    params
  })
}
// 导出cdk登录记录离开记录 Excel
export function exportExcel(params) {
  return request({
    url: '/cdklog//export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
